package com.message.tcp.ip.ui.transaction.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTable;
import javax.swing.JTextField;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.message.tcp.ip.socket.configure.service.CaseService;
import com.message.tcp.ip.socket.configure.service.TxnDefService;

public class SaveReqTransDe implements ActionListener {
	private JTextField tagField;
	private JTextField txnCodeField;
	private JTable table;
	private TxnDefService service;
	public SaveReqTransDe(JTextField tagField, JTextField txnCodeField, JTable table){
		this.tagField = tagField;
		this.txnCodeField = txnCodeField;
		this.table = table;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		service = (TxnDefService) context.getBean("txnDefService");
		String tag = tagField.getText();
		
	}

}
